package org.example.singleton;

public class lazySingle_synchronized {
    // 懒汉式  加锁
    private static lazySingle_synchronized s;

    private lazySingle_synchronized(){}

    public synchronized static lazySingle_synchronized getInstance(){
        if(s == null){
            s = new lazySingle_synchronized();
        }
        return s;
    }
}
